<?php 
namespace app\zylib\model;
use think\Model;
use think\Db;

/**
 * 地址联动模型
 */
class ApiQueryBankInfoModel extends Model
{
	protected $table='cmf_bank_info';

	/**
	 * 根据卡号获取银行卡信息
	 *@param $cardNumber 银行卡号 部分
	 */
	public function getBankCardInfoByCardNumber($cardNumber)
	{
		$card[]= substr($cardNumber, 0, 8);
		$card[]= substr($cardNumber, 0, 4);
		$card[]= substr($cardNumber, 0, 5);
		$card[]= substr($cardNumber, 0, 6);
		$res=$this->where('card_number','IN',$card)->find();
		return $res;
	}
}